﻿<!--
<copyright company="Christoph van der Fecht - VDsoft">
Copyright (C) Christoph van der Fecht - VDsoft - All Rights Reserved
Unauthorized copying of this file, via any medium is strictly prohibited,
unless it is communicated and authorized by the copyright owner.
</copyright>
-->
<Window x:Class="SeriesManager.MainWindow"
		xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
		xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
		xmlns:controls="clr-namespace:SeriesManager.Controls"
		Title="{Binding Path=Title, Mode=OneWay}" 
		x:Name="MainView"
		Height="600" 
		Width="800"
		MinHeight="600"
		MinWidth="800"
		WindowStartupLocation="CenterScreen"
		Icon="Icons/SeriesManager_Icon_v2.png"
		DataContext="{Binding Path=MainView, Source={StaticResource ResourceKey=Locator}}">
	<!--Root-->
	<Grid>
		<Grid.RowDefinitions>
			<RowDefinition Height="18"/>
			<RowDefinition Height="2*"/>
			<RowDefinition Height="8*"/>
		</Grid.RowDefinitions>
		<!--Menu-->
		<Menu Grid.Row="0">
			<MenuItem Header="File">
				<MenuItem Header="Exit"
						  Command="{Binding Path=CloseWindowCommand}"
						  CommandParameter="{Binding ElementName=MainView}"/>
			</MenuItem>
			<MenuItem Header="Extras">
				<MenuItem Header="Settings"
						  Command="{Binding Path=ShowOptionsDialogCommand}"/>
			</MenuItem>
			<MenuItem Header="Help">
				<MenuItem Header="About"
						  Command="{Binding Path=ShowAboutDialogCommand}"/>
			</MenuItem>
		</Menu>
		<!--Search and banner-->
		<Grid Grid.Row="1">
			<Grid.RowDefinitions>
				<RowDefinition Height="2*"/>
				<RowDefinition Height="6*"/>
			</Grid.RowDefinitions>
			<Button Content="Search Series"
					Grid.Row="0"
					VerticalAlignment="Center"
					HorizontalAlignment="Center"
					Command="{Binding Path=ShowSearchDialogCommand}"/>

			<Image Source="{Binding Path=SeriesBanner, Mode=OneWay}"
				   Grid.Row="1"
				   VerticalAlignment="Center"
				   HorizontalAlignment="Center"/>
		</Grid>
		<!--Content-->
		<TabControl Grid.Row="2"
					Margin="0,5,0,0">
			<TabItem Header="Episode Manager">
				<controls:EpisodeManagerControl Height="Auto"
												Width="Auto"
												VerticalAlignment="Stretch"
												HorizontalAlignment="Stretch"/>
			</TabItem>
			<TabItem Header="Banner Manager">
				<controls:BannerManagerControl Height="Auto"
											   Width="Auto"
											   VerticalAlignment="Stretch"
											   HorizontalAlignment="Stretch"/>
			</TabItem>
			<TabItem Header="Actors">
				<controls:ActorControl Height="Auto"
									   Width="Auto"
									   VerticalAlignment="Stretch"
									   HorizontalAlignment="Stretch"/>
			</TabItem>
		</TabControl>
	</Grid>
</Window>
